package com.easytopit.projects.domain;

import java.io.Serializable;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

public class User implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	/**223232
	 * 用户Id
	 * */
	private Integer id;
	
	/**
	 * 用户名
	 * */
	@NotBlank(message="用户名不能为空")
	@Length(min=2,max=6,message="输入正确的用户名，长度2~6")
	private String name;//111   
	@NotBlank(message="用户名不能为空")
	@Length(min=6,max=6,message="请输入密码,密码为6位数")
	private String password;
}
